import request from '@/utils/request';

export async function getFactoryCalendarItemByPage (params: any) {
    return request('/api/service/getFactoryCalendarItemByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addFactoryCalendarItem (params: any) {
    return request('/api/service/addFactoryCalendarItem', {
    method: 'POST',
    data: params,
  });
}

export async function updateFactoryCalendarItem (params: any) {
    return request('/api/service/updateFactoryCalendarItem', {
    method: 'POST',
    data: params,
  });
}

export async function delFactoryCalendarItem (params: any) {
    return request('/api/service/delFactoryCalendarItem', {
    method: 'POST',
    data: params,
  });
}


export async function exportFactoryCalendarItem(params: any) {
    return request('/api/service/exportFactoryCalendarItem', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getFactoryCalendarItemByPage, addFactoryCalendarItem, updateFactoryCalendarItem, delFactoryCalendarItem, exportFactoryCalendarItem }
